#include <stdio.h>

int main()

{
#if 0
    /*
        +
        -
        *
        /
        %
    */
    int vall = 37;
    int val2 = 12;

    int val3 = vall / val2; //?3     只取商
    int val4 = vall % val2; //?1     只取余数

    printf("vla3:%d\n", val3);
    printf("val4:%d\n", val4);

    float result = vall / val2;
    printf("result = %.2f\n", result);
#endif

#if 0
    /*
        +=
        -+
        *=
        /=
    */
    int money = 10000;

    for (int idx = 1; idx <= 12; idx++)
    {
        // money = money + 9500;
        money += 9500;
    }
    printf("money = %d\n", money);
#endif

#if 0
    /*
        & : 与运算
        | ： 或运算

    */
    int val1 = 72;
    int val2 = 13;

    int val3 = val1 & val2;
    int val4 = val1 | val2;

    printf("val3 = %d\n", val3);
    printf("val4 = %d\n", val4);

#endif

#if 1
    /*
        && : 逻辑与
        || ：逻辑或
        !  : 取反     //任何非0的反都是0，只有0的反是1
    */

    int money = 5000;
    if (money > 3000 && money < 8000)
    {
        printf("我可以买到手机\n");
    }
    else
    {
        printf("没有想要的手机\n");
    }
#endif

#if 1
    if (money < 3000 || money > 9000)
    {
        printf("买到手机\n");
    }
    else
    {
        printf("买不到手机\n");
    }
#endif
/*
    =   :赋值
    ==  :判断

*/
/*
++ :
-- :


*/

    return 0;
}